
export default [
  // 获取物业信息
  {
    url: '/wuye/info',
    type: 'get',
    response: config => {
      return {
        code: 20000,
        id: 748943649,
        commName: '九条米法',
        introduce: '米法米法米',
        service: '米米法',
        icon: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80'
      }
    }
  },
  // 获取招聘信息列表
  {
    url: '/wuye/jobs',
    type: 'get',
    response: config => {
      return {
        code: 20000,
        'list|1-10': [{
          'id|+1': 1,
          occ: '保安队长',
          recNum: '10',
          claim: '吃苦耐劳，身体强壮'
        }]
      }
    }
  },
  // 获取联系信息列表
  {
    url: '/wuye/contact',
    type: 'get',
    response: config => {
      return {
        code: 20000,
        'list|1-10': [{
          'id|+1': 1,
          tel: '13344445555',
          add: '陕西省西安市',
          mail: '748943649@qq.com'
        }]
      }
    }
  },
  // 修改物业信息
  {
    url: '/wuye/info/*',
    type: 'put',
    response: _ => {
      return {
        code: 20000,
        message: '修改成功'
      }
    }
  },
  // 添加招聘信息
  {
    url: '/wuye/jobs',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        message: '添加成功',
        id: Math.random()
      }
    }
  },
  // 修改招聘信息
  {
    url: '/wuye/jobs/*',
    type: 'put',
    response: config => {
      return {
        code: 20000,
        message: '修改成功'
      }
    }
  },
  // 删除招聘信息
  {
    url: '/wuye/jobs/*',
    type: 'delete',
    response: _ => {
      return {
        code: 20000,
        message: '删除成功'
      }
    }
  },
  // 添加联系方式
  {
    url: '/wuye/contact',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        message: '添加成功',
        id: Math.random()
      }
    }
  },
  // 修改联系方式信息
  {
    url: '/wuye/contact/*',
    type: 'put',
    response: config => {
      return {
        code: 20000,
        message: '修改成功'
      }
    }
  },
  // 删除招聘信息
  {
    url: '/wuye/contact/*',
    type: 'delete',
    response: _ => {
      return {
        code: 20000,
        message: '删除成功'
      }
    }
  },
  // 获取新闻列表
  {
    url: '/wuye/news',
    type: 'get',
    response: _ => {
      return {
        code: 20000,
        'list|10-30': [{
          'id|+1': 1,
          NewsTitle: '测试新闻标题',
          body: '测试新闻内容',
          dataTime: '1562839253885'
        }]
      }
    }
  },
  // 添加新闻
  {
    url: '/wuye/news',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        message: '添加成功',
        id: Math.random()
      }
    }
  },
  // 删除新闻
  {
    url: '/wuye/news',
    type: 'delete',
    response: _ => {
      return {
        code: 20000,
        message: '删除成功'
      }
    }
  },
  // 获取展示图列表
  {
    url: '/wuye/binner',
    type: 'get',
    response: _ => {
      return {
        code: 20000,
        'list|3-10': [{
          'id|+1': 1,
          img: 'http://placehold.it/1600x900'
        }]
      }
    }
  },
  // 添加展示图
  {
    url: '/wuye/binner',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        message: '添加成功'
      }
    }
  },
  // 删除展示图
  {
    url: '/wuye/binner',
    type: 'delete',
    response: _ => {
      return {
        code: 20000,
        message: '删除成功'
      }
    }
  },
  // 上传图片
  {
    url: '/wuye/upload',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        message: '上传成功',
        file_path: 'http://placehold.it/200x200'
      }
    }
  },
  // 获取反馈列表
  {
    url: '/wuye/advice',
    type: 'get',
    response: _ => {
      return {
        code: 20000,
        'list|3-10': [{
          'id|+1': 1,
          name: '九条米法',
          phone: '12233334444',
          opinion: '乌洛波洛斯之环!!!'
        }]
      }
    }
  }
]
